/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.phone.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 便民电话Entity
 * @author 张朋
 * @version 2016-09-07
 */
public class CommunityPhone extends DataEntity<CommunityPhone> {
	
	private static final long serialVersionUID = 1L;
	private Office office;		// 小区编号
	private Office company;		// 社区编号
	private String name;		// 名称
	private String phone;		// 电话
	
	public CommunityPhone() {
		super();
	}

	public CommunityPhone(String id){
		super(id);
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
//	@Length(min=0, max=64, message="社区编号长度必须介于 0 和 64 之间")
	public Office getCompany() {
		return company;
	}

	public void setCompany(Office company) {
		this.company = company;
	}
	
	@Length(min=1, max=255, message="名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=64, message="电话长度必须介于 1 和 64 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
}